<?php

namespace app\system\controller;


use app\system\service\MenuRoutesService;
use think\facade\Db;
use think\Request;
use app\BaseController;

class MenuRoutes extends BaseController
{
    protected $menuRoutesService;

    public function __construct(MenuRoutesService $menuRoutesService)
    {
        $this->menuRoutesService = $menuRoutesService;
    }

    /**
     * 描述:获取角色菜单的列表
     * 参数:{}
     * 返回:
     * 作者:W
     */
    public function getAsyncRoutes()
    {
        $systemManagementRouter = $this->menuRoutesService->getAsyncRoutes();
        return json(['success' => true, 'data' => $systemManagementRouter]);
    }


}
